/*
                  PlayerSummaryFrame Class Implementation
*/
#include "PlayerSummaryFrame.h"

PlayerSummaryFrame::PlayerSummaryFrame()
{

}

PlayerSummaryFrame::~PlayerSummaryFrame()
{

}

int PlayerSummaryFrame::Initialise(Point NewPosition, int iNewWidth, int iNewHeight)
{
    Position = NewPosition;

    iWidth = iNewWidth;
    iHeight = iNewHeight;

    lblName = new Label;
    lblName->Initialise(Point(50, 25), "Data//Fonts//gui.ttf", 26, "", GetSDLColor(255, 255, 255));

    lblScore = new Label;
    lblScore->Initialise(Point(50, 100), "Data//Fonts//gui.ttf", 24, "Finishing Points: ", GetSDLColor(255, 255, 255));

    lblNumScore = new Label;
    lblNumScore->Initialise(Point(200, 100), "Data//Fonts//gui.ttf", 24, "0", GetSDLColor(255, 255, 255));

    lblTotalScore = new Label;
    lblTotalScore->Initialise(Point(50, 150), "Data//Fonts//gui.ttf", 24, "Total Points: ", GetSDLColor(255, 255, 255));

    lblNumTotalScore = new Label;
    lblNumTotalScore->Initialise(Point(200, 150), "Data//Fonts//gui.ttf", 24, "0", GetSDLColor(255, 255, 255));

    lblKills = new Label;
    lblKills->Initialise(Point(50, 200), "Data//Fonts//gui.ttf", 24, "Kills: ", GetSDLColor(255, 255, 255));

    lblNumKills = new Label;
    lblNumKills->Initialise(Point(200, 200), "Data//Fonts//gui.ttf", 24, "0", GetSDLColor(255, 255, 255));

    lblDeaths = new Label;
    lblDeaths->Initialise(Point(50, 250), "Data//Fonts//gui.ttf", 24, "Deaths: ", GetSDLColor(255, 255, 255));

    lblNumDeaths = new Label;
    lblNumDeaths->Initialise(Point(200, 250), "Data//Fonts//gui.ttf", 24, "0", GetSDLColor(255, 255, 255));

    lblKDRatio = new Label;
    lblKDRatio->Initialise(Point(50, 300), "Data//Fonts//gui.ttf", 24, "Kill/Death Ratio: ", GetSDLColor(255, 255, 255));

    lblNumKDRatio = new Label;
    lblNumKDRatio->Initialise(Point(200, 300), "Data//Fonts//gui.ttf", 24, "0", GetSDLColor(255, 255, 255));

    this->AddWidget(lblName, "lblName");
    this->AddWidget(lblScore, "lblScore");
    this->AddWidget(lblNumScore, "lblNumScore");
    this->AddWidget(lblTotalScore, "lblTotalScore");
    this->AddWidget(lblNumTotalScore, "lblNumTotalScore");
    this->AddWidget(lblKills, "lblKills");
    this->AddWidget(lblNumKills, "lblNumKills");
    this->AddWidget(lblDeaths, "lblDeaths");
    this->AddWidget(lblNumDeaths, "lblNumDeaths");
    this->AddWidget(lblKDRatio, "lblKDRatio");
    this->AddWidget(lblNumKDRatio, "lblNumKDRatio");
}
